﻿using System.ComponentModel.DataAnnotations;
using Odyssey.Linq;

namespace Odyssey.Web.Models
{
    public class VisitorModel : tb_visitor
    {
        [LocalizedRequired("公司名称不能为空")]
        public new string CompanyName
        {
            get { return base.CompanyName; }
            set { base.CompanyName = value; }
        }
        [LocalizedRequired("经营范围不能为空")]
        public new string BusinessScope
        {
            get { return base.BusinessScope; }
            set { base.BusinessScope = value; }
        }
        [LocalizedRequired("国家不能为空")]
        public new string country
        {
            get { return base.country; }
            set { base.country = value; }
        }
        [LocalizedRequired("公司性质不能为空")]
        public new string xingzhi
        {
            get { return base.xingzhi; }
            set { base.xingzhi = value; }
        }
        [LocalizedRequired("地址不能为空")]
        public new string Address
        {
            get { return base.Address; }
            set { base.Address = value; }
        }
        [LocalizedRequired("传真不能为空")]
        public new string FaxNumber
        {
            get { return base.FaxNumber; }
            set { base.FaxNumber = value; }
        }
        [LocalizedRequired("姓名不能为空")]
        public new string ParticipatingContact1Name
        {
            get { return base.ParticipatingContact1Name; }
            set { base.ParticipatingContact1Name = value; }
        }
        [LocalizedRequired("性别不能为空")]
        public new bool ParticipatingContact1Sex
        {
            get { return base.ParticipatingContact1Sex; }
            set { base.ParticipatingContact1Sex = value; }
        }
        [LocalizedRequired("职务不能为空")]
        public new string ParticipatingContact1Title
        {
            get { return base.ParticipatingContact1Title; }
            set { base.ParticipatingContact1Title = value; }
        }
        [LocalizedRequired("联系电话不能为空")]
        public new string ParticipatingContact1Phone
        {
            get { return base.ParticipatingContact1Phone; }
            set { base.ParticipatingContact1Phone = value; }
        }
        [LocalizedRequired("请选择证件类型")]
        public new string ParticipatingContact1CardType
        {
            get { return base.ParticipatingContact1CardType; }
            set { base.ParticipatingContact1CardType = value; }
        }
        [LocalizedRequired("证件号码不能为空")]
        public new string ParticipatingContact1CardId
        {
            get { return base.ParticipatingContact1CardId; }
            set { base.ParticipatingContact1CardId = value; }
        }
        [LocalizedRequired("姓名不能为空")]
        public new string ParticipatingContact2Name
        {
            get { return base.ParticipatingContact2Name; }
            set { base.ParticipatingContact2Name = value; }
        }
        [LocalizedRequired("性别不能为空")]
        public new bool ParticipatingContact2Sex
        {
            get { return base.ParticipatingContact2Sex; }
            set { base.ParticipatingContact2Sex = value; }
        }
        [LocalizedRequired("职务不能为空")]
        public new string ParticipatingContact2Title
        {
            get { return base.ParticipatingContact2Title; }
            set { base.ParticipatingContact2Title = value; }
        }
        [LocalizedRequired("联系电话不能为空")]
        public new string ParticipatingContact2Phone
        {
            get { return base.ParticipatingContact2Phone; }
            set { base.ParticipatingContact2Phone = value; }
        }
        [LocalizedRequired("请选择证件类型")]
        public new string ParticipatingContact2CardType
        {
            get { return base.ParticipatingContact2CardType; }
            set { base.ParticipatingContact2CardType = value; }
        }
        [LocalizedRequired("证件号码不能为空")]
        public new string ParticipatingContact2CardId
        {
            get { return base.ParticipatingContact2CardId; }
            set { base.ParticipatingContact2CardId = value; }
        }
        [LocalizedRequired("姓名不能为空")]
        public new string ParticipatingContact3Name
        {
            get { return base.ParticipatingContact3Name; }
            set { base.ParticipatingContact3Name = value; }
        }
        [LocalizedRequired("性别不能为空")]
        public new bool ParticipatingContact3Sex
        {
            get { return base.ParticipatingContact3Sex; }
            set { base.ParticipatingContact3Sex = value; }
        }
        [LocalizedRequired("职务不能为空")]
        public new string ParticipatingContact3Title
        {
            get { return base.ParticipatingContact3Title; }
            set { base.ParticipatingContact3Title = value; }
        }
        [LocalizedRequired("联系电话不能为空")]
        public new string ParticipatingContact3Phone
        {
            get { return base.ParticipatingContact3Phone; }
            set { base.ParticipatingContact3Phone = value; }
        }
        [LocalizedRequired("请选择证件类型")]
        public new string ParticipatingContact3CardType
        {
            get { return base.ParticipatingContact3CardType; }
            set { base.ParticipatingContact3CardType = value; }
        }
        [LocalizedRequired("证件号码不能为空")]
        public new string ParticipatingContact3CardId
        {
            get { return base.ParticipatingContact3CardId; }
            set { base.ParticipatingContact3CardId = value; }
        }
        [LocalizedRequired("姓名不能为空")]
        public new string ParticipatingContact4Name
        {
            get { return base.ParticipatingContact4Name; }
            set { base.ParticipatingContact4Name = value; }
        }
        [LocalizedRequired("性别不能为空")]
        public new bool ParticipatingContact4Sex
        {
            get { return base.ParticipatingContact4Sex; }
            set { base.ParticipatingContact4Sex = value; }
        }
        [LocalizedRequired("职务不能为空")]
        public new string ParticipatingContact4Title
        {
            get { return base.ParticipatingContact4Title; }
            set { base.ParticipatingContact4Title = value; }
        }
        [LocalizedRequired("联系电话不能为空")]
        public new string ParticipatingContact4Phone
        {
            get { return base.ParticipatingContact4Phone; }
            set { base.ParticipatingContact4Phone = value; }
        }
        [LocalizedRequired("请选择证件类型")]
        public new string ParticipatingContact4CardType
        {
            get { return base.ParticipatingContact4CardType; }
            set { base.ParticipatingContact4CardType = value; }
        }
        [LocalizedRequired("证件号码不能为空")]
        public new string ParticipatingContact4CardId
        {
            get { return base.ParticipatingContact4CardId; }
            set { base.ParticipatingContact4CardId = value; }
        }
    }

    public class BulletinModel : tb_bulletin
    {
        [LocalizedRequired("企业名称不能为空")]
        public new string EnterpriseName
        {
            get { return base.EnterpriseName; }
            set { base.EnterpriseName = value; }
        }
        [LocalizedRequired("地址不能为空")]
        public new string Address
        {
            get { return base.Address; }
            set { base.Address = value; }
        }
        [LocalizedRequired("电话不能为空")]
        public new string Phone
        {
            get { return base.Phone; }
            set { base.Phone = value; }
        }
        [LocalizedRequired("传真不能为空")]
        public new string FaxNumber
        {
            get { return base.FaxNumber; }
            set { base.FaxNumber = value; }
        }
        [DataType(DataType.EmailAddress)]
        [LocalizedRegularExpression("[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?", "邮箱地址不正确")]
        public new string Email
        {
            get { return base.Email; }
            set { base.Email = value; }
        }
        [LocalizedRequired("展示内容不能为空")]
        public new string ShowContent
        {
            get { return base.ShowContent; }
            set { base.ShowContent = value; }
        }
        [LocalizedRequired("企业简介不能为空")]
        public new string EnterpriseIntroduction
        {
            get { return base.EnterpriseIntroduction; }
            set { base.EnterpriseIntroduction = value; }
        }
    }
}